package string;

public class Trim1 {
    public static void main(String[] args) {
        String str = "         好好学习Java        ";
        String str1 = str.trim();
        System.out.println(str1);
    }
}
